package com.ruoyi.rocky.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;


@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@AllArgsConstructor
@ApiModel(value = "PcSysUser", description = "系统用户表")
public class PcSysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @Excel(name = "用户id")
    private Long UserId;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号")
    @Excel(name = "用户账号")
    private String account;

    /**
     * 用户手机号
     */
    @ApiModelProperty(value = "用户手机号")
    @Excel(name = "用户手机号")
    private String phone;

    /**
     * 账号密码
     */
    @ApiModelProperty(value = "账号密码")
    @Excel(name = "账号密码")
    private String password;

    /**
     * 帐号状态
     */
    @ApiModelProperty(value = "帐号状态 1正常 0停用")
    @Excel(name = "账户状态")
    private Integer status;

//    /**
//     * 创建时间
//     */
//    @ApiModelProperty(value = "创建时间")
//    @TableField(value = "create_time")
//    @JsonFormat(shape = JsonFormat.Shape.NUMBER,pattern = "yyyy-MM-dd HH:mm:ss")
//    private Timestamp createTime;
//
//    /**
//     * 修改时间
//     */
//    @ApiModelProperty(value = "修改时间")
//    @TableField(value = "update_time")
//    @JsonFormat(shape = JsonFormat.Shape.NUMBER,pattern = "yyyy-MM-dd HH:mm:ss")
//    private Timestamp updateTime;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

}
